package com.yjx.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 整合	mybatis-plus
 * 1 导入 依赖  mybatis-plus-boot-starter
 * 2 配置数据源	导入数据库驱动
 * 3 配置mybatis-plus (添加@MapperScan,配置sql映射文件)
 */

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.yjx.gulimall.product.feign"})
@MapperScan("com.yjx.gulimall.product.dao")
@EnableTransactionManagement
public class GulimallProductApplication {

	public static void main(String[] args) {
		SpringApplication.run(GulimallProductApplication.class, args);
	}

}
